package com.distributer.product.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.distributer.product.model.Test;

@Mapper
public interface TestMapper {

	@Insert("INSERT INTO test (test_name, test_dec) VALUES (#{testName}, #{testDec})")
	public void insert(Test test);
	
	@Select("select test_id as testId,test_name as testName,test_dec as testDec from test where test_id = #{id}")
	public Test query(Integer id);
}
